<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../gvis.js"></script>
<?php

  	require_once '../classes/gvisWriter.php';
  	$gvisJSObject = new gvisWriter(1,'scatterchart', 'chart_div1', "width: 400, height: 240, titleX: 'Age', titleY: 'Weight', legend: 'none', pointSize: 5");
  	$gvisJSObject->addColType(array('Age','number'));
   	$gvisJSObject->addColType(array('Weight', 'number'));    	 	 	
	$gvisJSObject->addRow(array(3, 33));
	$gvisJSObject->addRow(array(10, 70));
	$gvisJSObject->addRow(array(25, 175));							
  	echo $gvisJSObject->getScriptString();
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Example gvisWriter.php Scatter Chart</title>
</head>
<body>
    <div id='chart_div1'></div>
</body>
</html>